#ifndef VIRTUALSCREEN_H
#define VIRTUALSCREEN_H
#include <SFML/Graphics.hpp>
#include "pch.h"

PNE_NAMESPACE_BEGIN

struct VirtualScreen : public sf::Drawable
{
    void Create(unsigned int width, unsigned int height, float pixel_size, sf::Color color);
    void SetPixel(std::size_t x, std::size_t y, sf::Color color);

private:
    void draw(sf::RenderTarget &target, sf::RenderStates states) const;

    sf::Vector2u m_screenSize;
    float m_pixelSize; // virtual pixel size in real pixels
    sf::VertexArray m_vertices;
};

PNE_NAMESPACE_END

#endif // VIRTUALSCREEN_H
       // DONE